#!/bin/sh
while true
do
    if !(ps -e | grep "main") > /dev/null ; then
    	nohup ./main &
    fi
	sleep 5
done
exit 0
